package com.wyzz.hr.util;

import java.util.Map;

public class SysConfigVarDef {

	public SysConfigVarDef(Map dbMap) {
		joinYearCalc = Integer.valueOf(15);
		taxBase = Double.valueOf(2000D);
		taxRange = "0,500,2000,5000,20000,40000,60000,80000,100000";
		taxRate = "0.05,0.10,0.15,0.20,0.25,0.30,0.35,0.40,0.45";
		monthSum = "1-1";
		if (dbMap == null)
			return;
		String dbconfig = (String) dbMap.get("sys.salary.joinyear.calc");
		if (dbconfig != null)
			joinYearCalc = Integer.valueOf(dbconfig);
		dbconfig = (String) dbMap.get("sys.salary.tax.min");
		if (dbconfig != null)
			taxBase = Double.valueOf(dbconfig);
		taxRange = (String) dbMap.get("sys.salary.tax.range");
		taxRate = (String) dbMap.get("sys.salary.tax.rate");
		monthSum = (String) dbMap.get("sys.examin.month.sum");
	}

	public Integer getJoinYearCalc() {
		return joinYearCalc;
	}

	public void setJoinYearCalc(Integer joinYearCalc) {
		this.joinYearCalc = joinYearCalc;
	}

	public Double getTaxBase() {
		return taxBase;
	}

	public void setTaxBase(Double taxBase) {
		this.taxBase = taxBase;
	}

	public String getTaxRange() {
		return taxRange;
	}

	public void setTaxRange(String taxRange) {
		this.taxRange = taxRange;
	}

	public String getTaxRate() {
		return taxRate;
	}

	public void setTaxRate(String taxRate) {
		this.taxRate = taxRate;
	}

	public String getMonthSum() {
		return monthSum;
	}

	public void setMonthSum(String monthSum) {
		this.monthSum = monthSum;
	}

	private Integer joinYearCalc;
	private Double taxBase;
	private String taxRange;
	private String taxRate;
	private String monthSum;
}
